package xyz.gzdxc.common.exception;

/**
 * the check code exception
 *
 */
public class CaptchaException extends Exception{
    /**
     * after catching the exception, need to encapsulate again and then throw, and the exception is not easy to understand, need more descriptions,
     * in the case above, use this constructor
     *
     * @param message the exception description
     * @param cause the exception stack
     */
    public CaptchaException(String message, Throwable cause){
        super(message, cause);
    }

    /**
     * after catching the exception, need to encapsulate again and then throw, and the exception is easy to understand, do not need more description,
     * in the case above, use this constructor
     *
     * @param cause the exception stack
     */
    public CaptchaException(Throwable cause){
        super(cause);
    }

    /**
     * when check the exception in a business demand, throw this kind of exception, describe the exception message in the message parameter
     * @param message the exception description
     */
    public CaptchaException(String message){
        super(message);
    }
}
